<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'object-form',
	'enableAjaxValidation'=>false,
)); ?>
	<div class="col1 fl">
		<div class="row cl">
			<?php echo $form->errorSummary($model); ?>
		</div>
		
		<div class="row cl">
			<?php foreach ($listAmenities as $key => $amenity) : ?>
				<div class="radio_box cl">
					<?php $check = (isset($amenity->check)) ? true : false; ?>
					<?php echo CHtml::checkBox('amenity['.$amenity->id.']', $check, array('class'=>'styled')); ?>
					<?php echo CHtml::label($amenity->name, 'amenity_'.$amenity->id); ?>
				</div>
			<?php endforeach ?>
		</div>
		
		<input type="hidden" name="object_id" value="<?php echo $object_id; ?>" />
		<input type="hidden" name="step" value="3" />
		<input type="hidden" name="next_step" value="4" />

		<div class="btn blue br3 fl">
			<?php echo CHtml::submitButton('Save'); ?>
		</div>
	</div>
<?php $this->endWidget(); ?>